home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_shw_hint.cog < prev    next >
Text File  |  1999-11-15  |  8KB  |  274 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SHW_Hint.cog
  4. #
  5. # Solves hints    
  6. #
  7. # [SXC]    adapted by [CMG]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.         message         startup
  15.         message         entered
  16.         message         crossed
  17.         message         user0
  18.         message         user1
  19.         message         user2
  20.         message         activated
  21.         message         taken
  22.         message         arrived
  23.  
  24.         
  25.         thing           player                          local
  26.  
  27.         # HINT OBJECTS/SURFS/SECTORS
  28.         
  29.         thing           hint2
  30.         surface         h2_face                 # see the ice dam (entered)
  31.         
  32.         thing           hint4
  33.         thing             h4_flask                 # take the flask (taken)
  34.         
  35.         thing           hint6
  36.         cog                h6_icedamcog            # blow the ice dam (user0)
  37.         
  38.         thing           hint8  
  39.         surface         h8_face                  # pull block above div1 onto this face    (entered)
  40.         
  41.         thing           hint10
  42.         thing            h10_div1key                # take key from pier trap cave (taken)
  43.  
  44.         thing           hint12
  45.         thing             h12_lever                # pull portcullis wheel lever  (activated)
  46.         
  47.         thing           hint14
  48.         thing            h14_Bdoor2                # open boss door 2    (arrived)
  49.         
  50.         thing           hint16
  51.         cog             h16_bucketdevcog       # release div2key from bucket device    (user0)
  52.         
  53.         thing           hint18
  54.         cog             h18_sluicecog            # pull D1lever (user0)
  55.         
  56.         thing           hint20
  57.         thing             h20_Bdoor3                # open boss door 3 (arrived)       
  58.  
  59.         thing           hint22
  60.         thing            h22_div2keybox            # unlock divroom2 door (activated)
  61.  
  62.         thing           hint24
  63.         cog             h24_D2sluicecog            # pull D2lever    (user1)
  64.  
  65.         thing           hint26
  66.         thing             h26_D3key                # take Divroom3 key    (activated)
  67.  
  68.         thing           hint28
  69.         thing             h28_Bdoor4                # open Boss door 4 (arrived)
  70.  
  71.         thing           hint30
  72.         cog             h30_sluicecog            # pull D1lever again (activated)
  73.  
  74.         thing           hint32
  75.         surface         h32_face                # jump into hole in floor (crossed)
  76.  
  77.         thing           hint34
  78.         thing              h34_whipstrut           # damage the whip wall swing strut (damaged)
  79.         
  80.         thing           hint36
  81.         thing              h36_D3lever                # pull D3lever    (activated)
  82.  
  83.         thing           hint38
  84.         thing              h38_Bdoor1              # open boss door 1 (arrived)
  85.  
  86.         thing           hint40
  87.         sector             h40_bossSect            # enter boss arena (entered)
  88.  
  89.         thing           hint42
  90.         surface         h42_face                # enter lab balcony (entered)
  91.  
  92.         thing           hint44
  93.         thing              h44_switch                # hit the exit switch (activated)
  94.  
  95.         
  96.  
  97. end
  98.  
  99.  
  100. # ========================================================================================
  101. code
  102.  
  103. startup:
  104.     player = GetLocalPlayerThing();
  105.     
  106. return;
  107.  
  108. # ========================================================================================
  109. damaged:
  110.  
  111.     If ((GetSenderRef() == h34_whipstrut) && (GetHintSolved(hint34) == 0))
  112.         {
  113.         SetHintSolved(hint34);
  114.         }
  115. return;
  116.  
  117.  
  118. # ========================================================================================
  119. crossed:
  120.  
  121.     If ((GetSenderRef() == h4_face) && (GetHintSolved(hint4) == 0) && (GetSourceRef() == player))
  122.         {
  123.         SetHintSolved(hint4);
  124.         }
  125.     
  126.     if ((GetSenderRef() == h12_face) && (GetHintSolved(hint12) == 0) && (GetSourceRef() == player))
  127.         {
  128.         SetHintSolved(hint12);
  129.         }
  130.  
  131.     if ((GetSenderRef() == h32_face) && (GetHintSolved(hint32) == 0) && (GetSourceRef() == player))
  132.         {
  133.         SetHintSolved(hint32);
  134.         }
  135. return;
  136.     
  137.  
  138. # ========================================================================================
  139.  
  140. entered:
  141.         
  142.     If ((GetSenderRef(h2_face))     &&  (GetHintSolved(hint2) == 0))
  143.         {
  144.         SetHintSolved(hint2);
  145.         }    
  146.  
  147.     if ((GetSenderRef() == h8_face) && (GetHintSolved(hint8) == 0) && (GetSourceRef() == player))
  148.         {
  149.         SetHintSolved(hint8);
  150.         }
  151.  
  152.     if ((GetSenderRef() == h40_bossSect) && (GetHintSolved(hint40) == 0) && (GetSourceRef() == player))
  153.         {
  154.         SetHintSolved(hint40);
  155.         }
  156.  
  157.     if ((GetSenderRef() == h42_face) && (GetHintSolved(hint42) == 0) && (GetSourceRef() == player))
  158.         {
  159.         SetHintSolved(hint42);
  160.         }
  161. return;
  162.     
  163. # ========================================================================================
  164. activated:    
  165.     
  166.     if ((GetSenderRef() == h12_lever) && (GetHintSolved(hint12) == 0) && (GetSourceRef() == player))
  167.         {
  168.         SetHintSolved(hint12);
  169.         }
  170.  
  171.     if ((GetSenderRef() == h22_div2keybox) && (GetHintSolved(hint22) == 0) && (GetCurItem(player) == 59))
  172.         {
  173.         SetHintSolved(hint22);
  174.         }
  175.  
  176.     if ((GetSenderRef() == h26_D3key) && (GetHintSolved(hint26) == 0))
  177.         {
  178.         SetHintSolved(hint26);
  179.         }
  180.  
  181.     if ((GetSenderRef() == h36_D3lever) && (GetHintSolved(hint36) == 0) && (GetSourceRef() == player))
  182.         {
  183.         SetHintSolved(hint36);
  184.         }
  185.  
  186.     if ((GetSenderRef() == h44_switch) && (GetHintSolved(hint44) == 0) && (GetSourceRef() == player))
  187.         {
  188.         SetHintSolved(hint44);
  189.         }
  190.  
  191. return;
  192.  
  193. # ========================================================================================
  194. user0:
  195.  
  196.     If ((GetSenderRef() == h6_icedamcog) && (GetHintSolved(hint6) == 0))
  197.         {
  198.             SetHintSolved(hint6);
  199.         }
  200.  
  201.     If ((GetSenderRef() == h16_bucketdevcog) && (GetHintSolved(hint16) == 0))
  202.         {
  203.             SetHintSolved(hint16);
  204.         }
  205.  
  206.     If ((GetSenderRef() == h18_sluicecog) && (GetHintSolved(hint18) == 0))
  207.         {
  208.             SetHintSolved(hint18);
  209.         }
  210.  
  211.     if ((GetSenderRef() == h30_sluicecog) && (GetHintSolved(hint24) == 1) && (GetHintSolved(hint30) == 0))
  212.         {
  213.         SetHintSolved(hint30);
  214.         }
  215.  
  216.     
  217. return;
  218.     
  219. # ========================================================================================
  220. user1:
  221.  
  222.     If ((GetSenderRef() == h24_D2sluicecog) && (GetHintSolved(hint24) == 0))
  223.         {
  224.             SetHintSolved(hint24);
  225.         }
  226. return;
  227.  
  228. # ========================================================================================
  229. # ========================================================================================
  230.  
  231.  
  232. taken:
  233.  
  234.     if ((GetSenderRef() == h4_flask) && (GetHintSolved(hint4) == 0))
  235.         {
  236.         SetHintSolved(hint4);
  237.         }
  238.     
  239.     if ((GetSenderRef() == h10_div1key) && (GetHintSolved(hint10) == 0))
  240.         {
  241.         SetHintSolved(hint10);
  242.         }
  243.     
  244. return;
  245.     
  246. # ========================================================================================
  247. arrived:
  248.  
  249.     if ((GetSenderRef() == h14_Bdoor2) && (GetHintSolved(hint14) == 0))
  250.         {
  251.         SetHintSolved(hint14);
  252.         }
  253.  
  254.     if ((GetSenderRef() == h20_Bdoor3) && (GetHintSolved(hint20) == 0))
  255.         {
  256.         SetHintSolved(hint20);
  257.         }
  258.  
  259.     if ((GetSenderRef() == h28_Bdoor4) && (GetHintSolved(hint28) == 0))
  260.         {
  261.         SetHintSolved(hint28);
  262.         }
  263.  
  264.     if ((GetSenderRef() == h38_Bdoor1) && (GetHintSolved(hint38) == 0))
  265.         {
  266.         SetHintSolved(hint38);
  267.         }
  268.  
  269. return;
  270. # ========================================================================================
  271.  
  272. end
  273.  
  274.